package com.situ.YiChangTest;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class Test {
	public static void main(String[] args) {
		FileReader reader = null;
		try {
			reader = new FileReader("d:/a.txt");
			char c = (char)reader.read();
			char c2 = (char)reader.read();
			char c3 = (char)reader.read();
			char c4 = (char)reader.read();
			char c5 = (char)reader.read();
			System.out.println(""+c + c2 + c3 + c4 + c5);
		} catch (FileNotFoundException  e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}finally {
			try {
				if (reader != null) {
					
					reader.close();
				}
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}
